<?php
namespace app\common\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/1
 * Time: 22:28
 */
class Login extends Validate{
    protected  $rule =[
        'username|管理员账户' => 'require',
        'password|密码' => 'require'
        ];
    //登陆场景验证
    public function sceneLogin(){
        return $this->only(['username','password']);
    }

}